<%@ page language="java" import="java.util.*" pageEncoding="gb2312"  %>
<%@page import="getResult.Result"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'queryResult.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  
 <table width="979" rules="all" height="20" cellspacing="0" border="0" style="border-collapse: collapse;"> 
<tr align="center">  
<div align="center">
<img src="D:\project XML\QuerySystem\images\xmlLogo.png" > 
 </div>
 </tr> 
</table>
  <table align="center" vertical-align="center" border=1 >
  <tr align="center">
 
 <%! ArrayList  result; %>
  <%! String  res; %>
  <% result = (ArrayList)request.getAttribute("slcaResult"); %>
  <textarea  style="BORDER-BOTTOM:   3px   solid;   BORDER-LEFT:   3px   solid;   BORDER-RIGHT:   3px   solid;   BORDER-TOP:   3px   solid;overflow-x:hidden;overflow-y:hidden;" onbeforeactivate="this.style.posHeight=this.scrollHeight;"  cols=70   rows=1 >
  
 <% for(int i =0 ; i< result.size(); i++) 
 {
 %>
  <% res =(String) result.get(i);%>
  <%= res %>
  <%} %>
  </textarea>
  </tr>
  <tr>
  <div align="center">
  <input style="font:oblique small-caps 900 13pt comic sans MS;" type="button" value="return" onclick="javascript:location.href='/QuerySystem/query.jsp'">
 </div>
  </tr>
  </table>
  </body>
</html>
